﻿@{
    ViewBag.Title = "Details"; 
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    layui.use(['jquery', 'form', 'laydate', 'common'], function () {
        var form = layui.form,
            $ = layui.$,
            common = layui.common,
            laydate = layui.laydate;
        var keyValue = $.request("keyValue");
        //权限字段
        common.authorizeFields('adminform');
        //此处需修改
        //类型为时间时
        //laydate.render({
            //elem: '#F_Birthday'
            //, btns: ['clear', 'now']
            //, trigger: 'click',
            //format: 'yyyy-MM-dd',
        //});

        $(function () {
            initControl();
            common.ajax({
                url: '/EquipmentManage/EqpStopRecord/GetFormJson',
                dataType: 'json',
                data: { keyValue: keyValue },
                async: false,
                success: function (data) {
                    common.val('adminform', data);
                    common.setReadOnly('adminform');
                    form.render();
                 }
            });
       });
       wcLoading.close();

       function initControl() {
           layui.$('#F_EqpId').bindSelect({
               url: "/EquipmentManage/EqpPqcCheckItem/GetEqpListJson",
               id: "F_Id",
               text: "F_EqpName"
           });
       }
   });
</script>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">
            <div class="layui-form layuimini-form" lay-filter="adminform">
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_EqpId</label>
                   <div class="layui-input-block">
                       <select id="F_EqpId" name="F_EqpId" lay-filter="splitType" lay-search lay-verify="required">
                           <option value="" selected>请选择</option>
                       </select>
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">停机类型</label>
                   <div class="layui-input-block">
                       <select id="F_StopType" name="F_StopType" lay-search lay-verify="required">
                           <option value="" selected>请选择</option>
                           <option value="1">实际停机</option>
                           <option value="2">计划内停机</option>
                       </select>
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">计划停机开始时间</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_PlanStopStartTime" name="F_PlanStopStartTime" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">计划停机结束时间</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_PlanStopEndTime" name="F_PlanStopEndTime" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">停机原因分类</label>
                   <div class="layui-input-block">
                       <select id="F_StopReasonType" name="F_StopReasonType" lay-search lay-verify="required">
                           <option value="" selected>请选择</option>
                           <option value="1">人</option>
                           <option value="2">机</option>
                           <option value="3">料</option>
                           <option value="4">法</option>
                           <option value="5">环</option>
                       </select>
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">停机原因</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_StopReason" name="F_StopReason" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">实际停机开始时间</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_RealStopStartTime" name="F_RealStopStartTime" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">实际停机结束时间</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_RealStopEndTime" name="F_RealStopEndTime" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">解决措施</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Solution" name="F_Solution" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">备注</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Description" name="F_Description" lay-verify="required" class="layui-input">
                   </div>
               </div>
                @*<div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_CreatorTime</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_CreatorTime" name="F_CreatorTime" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_CreatorUserId</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_CreatorUserId" name="F_CreatorUserId" lay-verify="required" class="layui-input">
                   </div>
               </div>*@
            </div>
        </div>
    </div>
</body>

